#include<iostream>
#include<vector>
#include<iterator>
#include<list>


using namespace std;


struct list_data
{
    string  name;
    string address;
    string phone;

    friend ostream& operator<<(ostream &cout,list_data &data);
};

ostream& operator<<(ostream &cout,list_data &data)
    {
        cout << "name:"<<data.name<<"\t"<<"address:"<<data.address<<"\t"<<"phone:"<<data.phone<<endl;
        return cout;
    }

int main(int argc, char const *argv[])
{

    vector<string>vi;
    vi.push_back("alang");
    vi.push_back("alang");
    vi.push_back("alang");
    vi.push_back("alang");
    vi.push_back("alang");
    vi.push_back("alang");
    vi.push_back("alang");

    list<list_data>li;
    li.push_back({"alang","amoy","15008574624"});

    li.push_back({"alang","amoy","15008574624"});
    li.push_back({"alang","amoy","15008574624"});
    li.push_back({"alang","amoy","15008574624"});
    li.push_back({"alang","amoy","15008574624"});
    li.push_back({"alang","amoy","15008574624"});
    cout << li.front();

    list<list_data> ::iterator iter1 = li.begin();

    vector<string>::iterator iter = vi.begin();
    for (iter1;iter1!=li.end();iter1 ++)
    {
        cout << *iter1 << endl;
    }
    
    return 0;
}


